package com.itjcloud.iot.gateway;

import com.itjcloud.iot.gateway.model.ApiPermissionProperties;
import com.itjcloud.iot.gateway.model.JOSEProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import reactor.core.publisher.Hooks;

@SpringBootApplication
@EnableConfigurationProperties({JOSEProperties.class, ApiPermissionProperties.class})
public class IotGatewayApplication {

    public static void main(String[] args) {
        Hooks.enableAutomaticContextPropagation();
        SpringApplication.run(IotGatewayApplication.class, args);
    }

}
